package com.css.zfzx.sjcj.modules.hddcGeomorStation.repository;

import com.css.zfzx.sjcj.modules.hddcGeomorStation.repository.entity.HddcGeomorstationEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author whj
 * @date 2020-11-30
 */
public interface HddcGeomorstationRepository extends JpaRepository<HddcGeomorstationEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Geomorstation where project_name in :projectIds")
    List<HddcGeomorstationEntity> queryHddcGeomorstationsByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Geomorstation where task_name in :projectIds")
    List<HddcGeomorstationEntity> queryHddcGeomorstationsByTaskId(List<String> projectIds);
}
